﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Heima.OA.Common
{
    public class FileUpload
    {
        /// <summary>
        /// 根据路径创建目录
        /// </summary>
        /// <param name="path"></param>
        public static bool MakeDirectory(string path)
        {
            if (!Directory.Exists(path))
            {
                Directory.CreateDirectory(path);
            }
            return true;
        }
        public static bool Exists(string path)
        {
            return Directory.Exists(path);
        }

    }
}
